using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GeYiHome.Domain.Entities;

namespace GeYiHome.Db.DbMapping
{
   public class OrderConfiguration:EntityBaseTypeConfiguration<OrderEntity>
    {
        public OrderConfiguration()
        {
            ToTable("t_order");
            Property(x => x.CustomId).HasColumnName("costom_id");
            Property(x => x.CustomName).HasColumnName("custom_name").HasMaxLength(100);
            Property(x => x.OrderId).HasColumnName("order_id");
            Property(x => x.ProductId).HasColumnName("product_id");
            Property(x => x.ProductName).HasColumnName("pruduct_name").HasMaxLength(100);
            Property(x => x.TransactionAmount).HasColumnName("transaction_amount");
            Property(x => x.TransactionNumber).HasColumnName("transaction_number");
        }
    }
}
